]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
a11y: do not expose a label text if 'hidden' style class is used
authorAlejandro Piñeiro <apinheiro@igalia.com>
Mon, 4 Jun 2012 16:23:51 +0000 (18:23 +0200)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Tue, 5 Jun 2012 16:12:41 +0000 (18:12 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=675341

src/st/st-label.c

index 0d00ba7672d857932807e9144303267fae5e419f..4954d493735e1ea93164b07a648d274b400aca51 100644 (file)
@@ -490,7 +490,7 @@ st_label_accessible_get_name (AtkObject *obj)
 
       actor = CLUTTER_ACTOR (atk_gobject_accessible_get_object (ATK_GOBJECT_ACCESSIBLE (obj)));
 
-      if (actor == NULL) /* State is defunct */
+      if (actor == NULL || st_widget_has_style_class_name (ST_WIDGET (actor), "hidden"))
         name = NULL;
       else
         name = st_label_get_text (ST_LABEL (actor));